package com.lin.common;
import lombok.Data;

    @Data
    public class Result {
        private int code;
        private String msg;
        private Object content;

        public static Result success(Object content) {
            Result result = new Result();
            result.code = 200;
            result.msg = "成功";
            result.content = content;
            return result;
        }

        public static Result fail(String msg) {
            Result result = new Result();
            result.code = 500;
            result.msg = msg;
            return result;
        }
}
